using Snake;
using Snake.Logger;
using UnityEngine;

public class TimeTester : MonoBehaviour
{
    [Range(0f, 1f)] public float scale = 1f;

    void Start()
    {
        App.Instance.RegisterTimeUpdate("root", OnUpdate);
    }

    private void OnUpdate(float arg1, float arg2)
    {
        Log.Debug($"{arg1} - {arg2}");
        App.Instance.SetUnityTimeScale(scale);
    }
}